package com.mystnihon.freeremote.util;

import android.content.Context;

import com.octo.android.robospice.SpiceManager;
import com.octo.android.robospice.SpiceService;

public class SpiceComponent {
    Context mContext;

    public SpiceComponent(Context context) {
        mContext = context;
    }

    private final SpiceManager spiceManager = new SpiceManager(SpiceService.class);

    protected void onStart() {
        spiceManager.start(mContext);
    }

    protected void onStop() {
        spiceManager.shouldStop();
    }

    public SpiceManager getSpiceManager() {
        return spiceManager;
    }
}
